<?php

ob_start();
header("Content-type:text/html;charset=utf-8");
require_once("include/bittorrent.php");
require ("imdb/imdb.class.php");
require ("imdb/douban.php");
dbconn();
stdhead("更新Tracker状态");
echo "正在执行更新...请稍候<br />";
ob_flush();
flush();
$forceall = 1;
echo "</p>";
$tstart = getmicrotime();
require_once("include/cleanup.php");
print("<p>" . docleanup($forceall, TRUE) . "</p>");
$tend = getmicrotime();
$totaltime = ($tend - $tstart);
printf("耗时：%f 秒<br />", $totaltime);
echo "完成<br />";
stdfoot();
